// 查询学院教务

import axios from "axios";

export default function (){

    return axios({
        method:'get',
        url:'/api/cAdmin/administration',
        header: {
            Authorization: localStorage.getItem("Authorization")
        }
    }).then(response=>{
        for (let i = 0; i < response.data.educationalAdministration.length; i++) {
            response.data.educationalAdministration[i].key = i;
        }
        return{
            result:true,
            administrations:response.data.educationalAdministration
        }
    }).catch(error=>{
        return{
            result:false,
            msg:error.response.data.msg
        }
    })
}